package com.lxd.milktea.exception;


import com.lxd.milktea.enums.ResultEnum;

/**
 * @author carrymaniac
 */
public class SellException extends RuntimeException {

    private Byte code;

    public SellException(Byte code, String message) {
        super(message);
        this.code = code;
    }

    public SellException(ResultEnum resultEnum) {
        super(resultEnum.getMsg());
        this.code = resultEnum.getCode();
    }
}
